#include "stdafx.h"

#include <Money.h>


namespace
{
	TEST( Money, Currency )
	{
		EXPECT_EQ( _T("USD"), Money::Dollar( 1 )->GetCurrency() );
		EXPECT_EQ( _T("CHF"), Money::Franc( 1 )->GetCurrency() );
	}

	TEST( Money, PlusSameCurrencyReturnsMoney )
	{
		const auto sum( *Money::Dollar( 1 ) + *Money::Dollar( 1 ) );
		EXPECT_EQ( typeid( Money ), typeid( *sum ) );
	}

} // unnamed namespace
